<div class="form" >
    <fieldset>
        <?php
        $form = $this->beginWidget('CActiveForm', array(
            'id' => 'user-form',
            'enableAjaxValidation' => false,
                ));
        ?>

        <p class="note">Fields with <span class="required">*</span> are required.</p>

        <style type="text/css">
            div .form .errorSummary ul li
            {
                color:red;
            }
        </style>
        <?php echo $form->errorSummary($model); ?>

        <?php echo $form->labelEx($model, 'name'); ?><br />
        <?php echo $form->textField($model, 'name', array('size' => 60, 'maxlength' => 255, 'class' => 'text-input')); ?>
        <?php echo $form->error($model, 'name', array("style" => "color:red")); ?>
        <br />
        <br />
        <?php echo $form->labelEx($model, 'password'); ?><br />
        <?php echo $form->passwordField($model, 'password', array('size' => 60, 'maxlength' => 255, 'class' => 'text-input')); ?>
        <?php echo $form->error($model, 'password', array("style" => "color:red")); ?>
        <br />
        <br />
        <?php echo $form->labelEx($model, 'email'); ?><br />
        <?php echo $form->textField($model, 'email', array('size' => 60, 'maxlength' => 255, 'class' => 'text-input')); ?>
        <?php echo $form->error($model, 'email', array("style" => "color:red")); ?>
        <br />
        <br />
        <?php echo $form->labelEx($model, 'address'); ?><br />
        <?php echo $form->textField($model, 'address', array('size' => 60, 'maxlength' => 255, 'class' => 'text-input')); ?>
        <?php echo $form->error($model, 'address', array("style" => "color:red")); ?>
        <br />
        <br />
        <?php echo CHtml::submitButton($model->isNewRecord ? 'Create →' : 'Save →', array("class" => "button")); ?>

        <?php $this->endWidget(); ?>
    </fieldset>
</div><!-- form -->




